function [ f ] = fitFunctionForHVariable( x, xdata, c )
%UNTITLED3 Summary of this function goes here
%   Detailed explanation goes here

f = xdata.^2 ./ 2 .* (c - log(2)) + x(1)*xdata.^2.*log(xdata) + x(2).*xdata.^2.*log(sqrt(xdata) + 1) + x(3).*xdata.^(3/2) + x(4).* xdata.*log(xdata) + x(5).*xdata.*log(sqrt(xdata)+1)+xdata.*x(6);

end